package com.ct.R.RError.RErrorEnum;

import com.ct.R.IResultCodeInterface;
import lombok.Getter;

/**
 * 验证器抛出枚举
 */
@Getter
public enum ValidatorEnum implements IResultCodeInterface {

    PARAMATER_ERROR(90001, "PARAMATER_ERROR", "参数验证不通过!"),
    EMAIL_PARAMATER_ERROR(90002, "EMAIL_PARAMATER_ERROR", "请输入正确的邮箱"),
    ;

    private Integer code;
    private String codeDesc;
    private String msg;

    ValidatorEnum(Integer code, String codeDesc, String msg){
        this.code = code;
        this.codeDesc = codeDesc;
        this.msg = msg;
    }
}
